package logic.concurrent;


/**模拟业务方法
 * 
 * @author munan
 *
 */
public class FooThread extends Thread{
	private String fooID;	//唯一性KeyID
	private String tname;	//别名
	public FooThread(String tname,String fooID) {
		super(fooID);
		this.fooID=fooID;
		this.tname=tname;
	}
	public void run(){
		if(UseForConcurrentHashMap.getlock(fooID)){
			System.out.println("线程 "+tname+" 获得了并发锁 "+fooID+" 执行业务逻辑...");
		}
	}
	
}
